<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI交友列表 - 高级筛选系统</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #4f46e5;
            --primary-light: #818cf8;
            --secondary-color: #2563eb;
            --accent-color: #ec4899;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --text-dark: #1e293b;
            --text-light: #64748b;
            --border-color: #e2e8f0;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--light-bg);
            color: var(--text-dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: var(--primary-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .section-title {
            position: relative;
            padding-bottom: 12px;
            margin-bottom: 2rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--accent-color);
        }
        
        /* 筛选区域样式 */
        .filter-container {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        
        .filter-container:hover {
            box-shadow: var(--shadow-md);
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .filter-results {
            background-color: rgba(79, 70, 229, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            color: var(--primary-color);
        }
        
        /* 折叠面板样式 */
        .collapse-section {
            margin-bottom: 1.5rem;
        }
        
        .collapse-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8rem 0;
            cursor: pointer;
            user-select: none;
            font-weight: 600;
            font-size: 1.05rem;
        }
        
        .collapse-header i {
            color: var(--text-light);
            transition: var(--transition);
        }
        
        .collapse-content {
            padding: 0.5rem 0 1rem 0;
            border-bottom: 1px solid var(--border-color);
            display: none;
        }
        
        .collapse-content.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .rotate {
            transform: rotate(180deg);
        }
        
        /* 筛选选项样式 */
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 1rem;
        }
        
        .filter-chip {
            background-color: #f1f5f9;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .filter-chip:hover {
            background-color: #e2e8f0;
            transform: translateY(-2px);
        }
        
        .filter-chip.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .filter-chip .badge {
            background-color: rgba(255, 255, 255, 0.2);
            font-size: 0.7rem;
            padding: 1px 6px;
        }
        
        /* 滑块样式 */
        .range-slider {
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .range-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.5rem;
        }
        
        .range-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .range-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-light);
            margin-top: -0.5rem;
        }
        
        /* 复选框和单选框样式 */
        .form-check {
            margin-right: 1.5rem;
            margin-bottom: 0.75rem;
        }
        
        .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .checkbox-group, .radio-group {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }
        
        /* 筛选操作按钮 */
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            transition: var(--transition);
        }
        
        .btn-primary:hover {
            background-color: #4338ca;
            border-color: #4338ca;
            transform: translateY(-2px);
        }
        
        .btn-outline-primary {
            color: var(--primary-color);
            border-color: var(--primary-color);
            transition: var(--transition);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }
        
        /* 已选筛选条件 */
        .selected-filters {
            background-color: rgba(79, 70, 229, 0.05);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        
        .selected-filter-item {
            background-color: white;
            border: 1px solid var(--primary-light);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary-color);
        }
        
        .remove-filter {
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--text-light);
            transition: var(--transition);
        }
        
        .remove-filter:hover {
            color: #dc2626;
        }
        
        .clear-all {
            margin-left: auto;
            color: var(--text-light);
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: var(--transition);
        }
        
        .clear-all:hover {
            color: #dc2626;
        }
        
        /* 结果展示样式 */
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            color: var(--text-light);
            font-size: 0.95rem;
        }
        
        .sort-options {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .sort-label {
            font-size: 0.9rem;
            color: var(--text-light);
        }
        
        /* 交友卡片样式 */
        .dating-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .dating-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }
        
        .card-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .card-body {
            padding: 1.25rem;
        }
        
        .profile-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 1rem;
        }
        
        .profile-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .profile-info h5 {
            margin-bottom: 3px;
            font-weight: 600;
        }
        
        .match-percentage {
            display: inline-block;
            background-color: rgba(236, 72, 153, 0.1);
            color: var(--accent-color);
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .profile-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .interest-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 1rem;
        }
        
        .interest-tag {
            background-color: rgba(79, 70, 229, 0.1);
            color: var(--primary-color);
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .filter-actions {
                flex-direction: column;
            }
            
            .filter-actions .btn {
                width: 100%;
            }
            
            .selected-filters {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .clear-all {
                margin-left: 0;
                width: 100%;
                justify-content: center;
                padding-top: 0.5rem;
                margin-top: 0.5rem;
                border-top: 1px dashed var(--border-color);
            }
            
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }
        
        /* 视图切换 */
        .view-toggle {
            display: flex;
            gap: 10px;
            margin-bottom: 1.5rem;
        }
        
        .toggle-btn {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .toggle-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        /* 骨架屏加载效果 */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
        }
        
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container">
            <a class="navbar-brand d-flex align-items-center gap-2" href="#">
                <i class="fas fa-robot"></i>
                <span>智能社交</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">AI交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣社群</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">匹配设置</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <div class="position-relative">
                        <button class="btn btn-outline-light">
                            <i class="fas fa-bell"></i>
                        </button>
                        <span class="position-absolute top-0 right-0 translate-middle badge rounded-circle bg-danger">3</span>
                    </div>
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人中心</a></li>
                            <li><a class="dropdown-item" href="#">我的匹配</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container py-6">
        <h2 class="section-title">AI交友列表</h2>
        
        <!-- 视图切换 -->
        <div class="view-toggle">
            <button class="toggle-btn active" id="grid-view">
                <i class="fas fa-th-large"></i> 网格视图
            </button>
            <button class="toggle-btn" id="list-view">
                <i class="fas fa-list"></i> 列表视图
            </button>
        </div>
        
        <!-- 已选筛选条件 -->
        <div class="selected-filters">
            <div class="selected-filter-item">
                匹配度: 90%以上
                <span class="remove-filter" data-filter="match"><i class="fas fa-times"></i></span>
            </div>
            <div class="selected-filter-item">
                年龄: 25-35岁
                <span class="remove-filter" data-filter="age"><i class="fas fa-times"></i></span>
            </div>
            <div class="selected-filter-item">
                兴趣: 音乐
                <span class="remove-filter" data-filter="interest"><i class="fas fa-times"></i></span>
            </div>
            <div class="clear-all">
                <i class="fas fa-broom"></i> 清除全部筛选
            </div>
        </div>
        
        <!-- 高级筛选区域 -->
        <div class="filter-container">
            <div class="filter-header">
                <div class="h5 mb-0">高级筛选</div>
                <div class="filter-results">找到 <strong>24</strong> 个匹配结果</div>
            </div>
            
            <!-- 匹配度筛选 -->
            <div class="collapse-section">
                <div class="collapse-header" data-target="match-degree-content">
                    <span><i class="fas fa-percent me-2 text-primary"></i> 匹配度</span>
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div id="match-degree-content" class="collapse-content show">
                    <div class="filter-options">
                        <div class="filter-chip" data-filter="match" data-value="all">
                            全部
                            <span class="badge">128</span>
                        </div>
                        <div class="filter-chip active" data-filter="match" data-value="90+">
                            90%以上
                            <span class="badge">24</span>
                        </div>
                        <div class="filter-chip" data-filter="match" data-value="80-90">
                            80%-90%
                            <span class="badge">36</span>
                        </div>
                        <div class="filter-chip" data-filter="match" data-value="70-80">
                            70%-80%
                            <span class="badge">42</span>
                        </div>
                        <div class="filter-chip" data-filter="match" data-value="60-70">
                            60%-70%
                            <span class="badge">18</span>
                        </div>
                        <div class="filter-chip" data-filter="match" data-value="below60">
                            60%以下
                            <span class="badge">8</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 基本信息筛选 -->
            <div class="collapse-section">
                <div class="collapse-header" data-target="basic-info-content">
                    <span><i class="fas fa-user me-2 text-primary"></i> 基本信息</span>
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div id="basic-info-content" class="collapse-content">
                    <!-- 性别筛选 -->
                    <div class="mb-4">
                        <label class="form-label fw-medium mb-2">性别</label>
                        <div class="radio-group">
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="gender" id="gender-all" checked>
                                <label class="form-check-label" for="gender-all">全部</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="gender" id="gender-male">
                                <label class="form-check-label" for="gender-male">男</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="gender" id="gender-female">
                                <label class="form-check-label" for="gender-female">女</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="gender" id="gender-other">
                                <label class="form-check-label" for="gender-other">其他</label>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 年龄筛选 -->
                    <div class="mb-4">
                        <label class="form-label fw-medium mb-2">年龄范围</label>
                        <input type="range" class="form-range range-slider" min="18" max="60" value="35" id="age-max">
                        <div class="range-labels">
                            <span>18岁</span>
                            <span>60岁</span>
                        </div>
                        <div class="range-info">
                            <span>年龄范围: 25 - <span class="range-value" id="age-value">35</span>岁</span>
                            <button class="btn btn-sm btn-outline-primary">重置</button>
                        </div>
                    </div>
                    
                    <!-- 所在地筛选 -->
                    <div class="mb-4">
                        <label class="form-label fw-medium mb-2">所在地</label>
                        <div class="row gap-2">
                            <div class="col-md-4">
                                <select class="form-select">
                                    <option>全国</option>
                                    <option>北京</option>
                                    <option>上海</option>
                                    <option>广州</option>
                                    <option>深圳</option>
                                    <option>杭州</option>
                                </select>
                            </div>
                            <div class="col-md-4">
                                <select class="form-select">
                                    <option>不限</option>
                                    <option>市辖区</option>
                                    <option>县</option>
                                </select>
                            </div>
                            <div class="col-md-4">
                                <select class="form-select">
                                    <option>不限</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 距离筛选 -->
                    <div>
                        <label class="form-label fw-medium mb-2">距离范围</label>
                        <input type="range" class="form-range range-slider" min="1" max="100" value="50" id="distance-range">
                        <div class="range-labels">
                            <span>1公里</span>
                            <span>100公里</span>
                        </div>
                        <div class="range-info">
                            <span>距离范围: 0 - <span class="range-value" id="distance-value">50</span>公里</span>
                            <button class="btn btn-sm btn-outline-primary">重置</button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 兴趣爱好筛选 -->
            <div class="collapse-section">
                <div class="collapse-header" data-target="interests-content">
                    <span><i class="fas fa-heart me-2 text-primary"></i> 兴趣爱好</span>
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div id="interests-content" class="collapse-content">
                    <div class="filter-options">
                        <div class="filter-chip active" data-filter="interest" data-value="music">音乐</div>
                        <div class="filter-chip" data-filter="interest" data-value="sports">运动</div>
                        <div class="filter-chip" data-filter="interest" data-value="reading">阅读</div>
                        <div class="filter-chip" data-filter="interest" data-value="travel">旅行</div>
                        <div class="filter-chip" data-filter="interest" data-value="cooking">美食/烹饪</div>
                        <div class="filter-chip" data-filter="interest" data-value="movies">电影</div>
                        <div class="filter-chip" data-filter="interest" data-value="games">游戏</div>
                        <div class="filter-chip" data-filter="interest" data-value="photography">摄影</div>
                        <div class="filter-chip" data-filter="interest" data-value="art">艺术</div>
                        <div class="filter-chip" data-filter="interest" data-value="tech">科技</div>
                        <div class="filter-chip" data-filter="interest" data-value="pets">宠物</div>
                        <div class="filter-chip" data-filter="interest" data-value="fitness">健身</div>
                    </div>
                    <button class="btn btn-sm btn-outline-primary mt-1">
                        <i class="fas fa-plus me-1"></i> 更多兴趣
                    </button>
                </div>
            </div>
            
            <!-- 性格特质筛选 -->
            <div class="collapse-section">
                <div class="collapse-header" data-target="personality-content">
                    <span><i class="fas fa-star me-2 text-primary"></i> 性格特质</span>
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div id="personality-content" class="collapse-content">
                    <div class="checkbox-group">
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-optimistic">
                            <label class="form-check-label" for="personality-optimistic">乐观开朗</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-creative">
                            <label class="form-check-label" for="personality-creative">富有创造力</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-kind">
                            <label class="form-check-label" for="personality-kind">善良体贴</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-humorous">
                            <label class="form-check-label" for="personality-humorous">幽默风趣</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-ambitious">
                            <label class="form-check-label" for="personality-ambitious">有上进心</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-calm">
                            <label class="form-check-label" for="personality-calm">沉稳冷静</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-adventurous">
                            <label class="form-check-label" for="personality-adventurous">喜欢冒险</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="checkbox" id="personality-detail">
                            <label class="form-check-label" for="personality-detail">注重细节</label>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 其他条件筛选 -->
            <div class="collapse-section">
                <div class="collapse-header" data-target="other-content">
                    <span><i class="fas fa-sliders-h me-2 text-primary"></i> 其他条件</span>
                    <i class="fas fa-chevron-down"></i>
                </div>
                <div id="other-content" class="collapse-content">
                    <!-- 职业筛选 -->
                    <div class="mb-4">
                        <label class="form-label fw-medium mb-2">职业类型</label>
                        <div class="filter-options">
                            <div class="filter-chip" data-filter="occupation" data-value="student">学生</div>
                            <div class="filter-chip" data-filter="occupation" data-value="it">IT/互联网</div>
                            <div class="filter-chip" data-filter="occupation" data-value="education">教育/培训</div>
                            <div class="filter-chip" data-filter="occupation" data-value="finance">金融/银行</div>
                            <div class="filter-chip" data-filter="occupation" data-value="medical">医疗/健康</div>
                            <div class="filter-chip" data-filter="occupation" data-value="art">艺术/设计</div>
                            <div class="filter-chip" data-filter="occupation" data-value="business">商业/管理</div>
                            <div class="filter-chip" data-filter="occupation" data-value="service">服务行业</div>
                        </div>
                    </div>
                    
                    <!-- 活跃度筛选 -->
                    <div class="mb-4">
                        <label class="form-label fw-medium mb-2">活跃度</label>
                        <div class="radio-group">
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="activity" id="activity-all" checked>
                                <label class="form-check-label" for="activity-all">全部</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="activity" id="activity-high">
                                <label class="form-check-label" for="activity-high">高活跃</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="activity" id="activity-medium">
                                <label class="form-check-label" for="activity-medium">中等活跃</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="radio" name="activity" id="activity-low">
                                <label class="form-check-label" for="activity-low">低活跃</label>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 在线状态筛选 -->
                    <div>
                        <label class="form-label fw-medium mb-2">在线状态</label>
                        <div class="checkbox-group">
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="online-now" checked>
                                <label class="form-check-label" for="online-now">正在线上</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="online-today">
                                <label class="form-check-label" for="online-today">今日在线</label>
                            </div>
                            <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="online-week">
                                <label class="form-check-label" for="online-week">本周在线</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 筛选操作按钮 -->
            <div class="filter-actions">
                <button class="btn btn-outline-primary" id="reset-filters">
                    <i class="fas fa-sync-alt me-1"></i> 重置筛选
                </button>
                <button class="btn btn-primary" id="apply-filters">
                    <i class="fas fa-filter me-1"></i> 应用筛选
                </button>
            </div>
        </div>
        
        <!-- 结果展示 -->
        <div class="results-header">
            <div class="results-count">找到 <strong>24</strong> 个符合条件的AI交友推荐</div>
            <div class="sort-options">
                <span class="sort-label">排序方式:</span>
                <select class="form-select form-select-sm" style="width: auto;">
                    <option selected>匹配度从高到低</option>
                    <option>最新加入</option>
                    <option>活跃度从高到低</option>
                    <option>距离从近到远</option>
                </select>
            </div>
        </div>
        
        <!-- 网格视图 -->
        <div class="row" id="grid-results">
            <!-- 交友卡片1 -->
            <div class="col-md-6 col-lg-4">
                <div class="dating-card">
                    <img src="https://picsum.photos/id/1027/400/300" alt="用户照片" class="card-img">
                    <div class="card-body">
                        <div class="profile-header">
                            <img src="https://picsum.photos/id/1012/60/60" alt="用户头像" class="profile-avatar">
                            <div class="profile-info">
                                <h5>林小雨</h5>
                                <div class="match-percentage">98% 匹配</div>
                            </div>
                        </div>
                        
                        <div class="profile-stats">
                            <div class="stat-item">
                                <i class="fas fa-birthday-cake"></i>
                                <span>28岁</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>3.2公里</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>10分钟前</span>
                            </div>
                        </div>
                        
                        <p class="card-text text-truncate">热爱音乐和旅行，希望找到志同道合的朋友一起探索世界的美好。</p>
                        
                        <div class="interest-tags">
                            <span class="interest-tag">音乐</span>
                            <span class="interest-tag">旅行</span>
                            <span class="interest-tag">摄影</span>
                        </div>
                        
                        <div class="d-flex gap-2 mt-2">
                            <button class="btn btn-primary flex-grow-1">
                                <i class="fas fa-comment me-1"></i> 打招呼
                            </button>
                            <button class="btn btn-outline-primary">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="btn btn-outline-primary">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 交友卡片2 -->
            <div class="col-md-6 col-lg-4">
                <div class="dating-card">
                    <img src="https://picsum.photos/id/1074/400/300" alt="用户照片" class="card-img">
                    <div class="card-body">
                        <div class="profile-header">
                            <img src="https://picsum.photos/id/1025/60/60" alt="用户头像" class="profile-avatar">
                            <div class="profile-info">
                                <h5>王浩</h5>
                                <div class="match-percentage">95% 匹配</div>
                            </div>
                        </div>
                        
                        <div class="profile-stats">
                            <div class="stat-item">
                                <i class="fas fa-birthday-cake"></i>
                                <span>32岁</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>5.7公里</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>1小时前</span>
                            </div>
                        </div>
                        
                        <p class="card-text text-truncate">古典音乐爱好者，钢琴教师，喜欢参加各类音乐会和音乐节。</p>
                        
                        <div class="interest-tags">
                            <span class="interest-tag">音乐</span>
                            <span class="interest-tag">教学</span>
                            <span class="interest-tag">艺术</span>
                        </div>
                        
                        <div class="d-flex gap-2 mt-2">
                            <button class="btn btn-primary flex-grow-1">
                                <i class="fas fa-comment me-1"></i> 打招呼
                            </button>
                            <button class="btn btn-outline-primary">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="btn btn-outline-primary">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 交友卡片3 -->
            <div class="col-md-6 col-lg-4">
                <div class="dating-card">
                    <img src="https://picsum.photos/id/1062/400/300" alt="用户照片" class="card-img">
                    <div class="card-body">
                        <div class="profile-header">
                            <img src="https://picsum.photos/id/1066/60/60" alt="用户头像" class="profile-avatar">
                            <div class="profile-info">
                                <h5>张雪</h5>
                                <div class="match-percentage">92% 匹配</div>
                            </div>
                        </div>
                        
                        <div class="profile-stats">
                            <div class="stat-item">
                                <i class="fas fa-birthday-cake"></i>
                                <span>25岁</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>8.3公里</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>3小时前</span>
                            </div>
                        </div>
                        
                        <p class="card-text text-truncate">独立音乐人，喜欢创作和分享原创歌曲，寻找音乐伙伴和听众。</p>
                        
                        <div class="interest-tags">
                            <span class="interest-tag">音乐</span>
                            <span class="interest-tag">创作</span>
                            <span class="interest-tag">表演</span>
                        </div>
                        
                        <div class="d-flex gap-2 mt-2">
                            <button class="btn btn-primary flex-grow-1">
                                <i class="fas fa-comment me-1"></i> 打招呼
                            </button>
                            <button class="btn btn-outline-primary">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="btn btn-outline-primary">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表视图 (默认隐藏) -->
        <div id="list-results" style="display: none;">
            <!-- 列表项1 -->
            <div class="dating-card">
                <div class="row">
                    <div class="col-md-3 p-0">
                        <img src="https://picsum.photos/id/1027/400/300" alt="用户照片" class="w-100 h-100 object-cover">
                    </div>
                    <div class="col-md-9 p-4">
                        <div class="d-flex justify-content-between">
                            <div class="profile-header">
                                <img src="https://picsum.photos/id/1012/60/60" alt="用户头像" class="profile-avatar">
                                <div class="profile-info">
                                    <h5>林小雨</h5>
                                    <div class="match-percentage">98% 匹配</div>
                                </div>
                            </div>
                            <div class="d-flex gap-2">
                                <button class="btn btn-primary">
                                    <i class="fas fa-comment me-1"></i> 打招呼
                                </button>
                                <button class="btn btn-outline-primary">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="btn btn-outline-primary">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                        
                        <div class="profile-stats">
                            <div class="stat-item">
                                <i class="fas fa-birthday-cake"></i>
                                <span>28岁</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>3.2公里</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>10分钟前</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-user-graduate"></i>
                                <span>音乐学硕士</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-briefcase"></i>
                                <span>音乐教师</span>
                            </div>
                        </div>
                        
                        <p class="card-text">热爱音乐和旅行，希望找到志同道合的朋友一起探索世界的美好。擅长钢琴和小提琴，喜欢古典音乐和爵士乐，周末经常参加各类音乐会。</p>
                        
                        <div class="interest-tags">
                            <span class="interest-tag">音乐</span>
                            <span class="interest-tag">旅行</span>
                            <span class="interest-tag">摄影</span>
                            <span class="interest-tag">阅读</span>
                            <span class="interest-tag">美食</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 列表项2 -->
            <div class="dating-card">
                <div class="row">
                    <div class="col-md-3 p-0">
                        <img src="https://picsum.photos/id/1074/400/300" alt="用户照片" class="w-100 h-100 object-cover">
                    </div>
                    <div class="col-md-9 p-4">
                        <div class="d-flex justify-content-between">
                            <div class="profile-header">
                                <img src="https://picsum.photos/id/1025/60/60" alt="用户头像" class="profile-avatar">
                                <div class="profile-info">
                                    <h5>王浩</h5>
                                    <div class="match-percentage">95% 匹配</div>
                                </div>
                            </div>
                            <div class="d-flex gap-2">
                                <button class="btn btn-primary">
                                    <i class="fas fa-comment me-1"></i> 打招呼
                                </button>
                                <button class="btn btn-outline-primary">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="btn btn-outline-primary">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                        
                        <div class="profile-stats">
                            <div class="stat-item">
                                <i class="fas fa-birthday-cake"></i>
                                <span>32岁</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>5.7公里</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>1小时前</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-user-graduate"></i>
                                <span>音乐学院毕业</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-briefcase"></i>
                                <span>钢琴教师</span>
                            </div>
                        </div>
                        
                        <p class="card-text">古典音乐爱好者，钢琴教师，喜欢参加各类音乐会和音乐节。闲暇时会创作一些钢琴曲，希望能找到喜欢古典音乐的朋友一起交流分享。</p>
                        
                        <div class="interest-tags">
                            <span class="interest-tag">音乐</span>
                            <span class="interest-tag">教学</span>
                            <span class="interest-tag">艺术</span>
                            <span class="interest-tag">写作</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 列表项3 -->
            <div class="dating-card">
                <div class="row">
                    <div class="col-md-3 p-0">
                        <img src="https://picsum.photos/id/1062/400/300" alt="用户照片" class="w-100 h-100 object-cover">
                    </div>
                    <div class="col-md-9 p-4">
                        <div class="d-flex justify-content-between">
                            <div class="profile-header">
                                <img src="https://picsum.photos/id/1066/60/60" alt="用户头像" class="profile-avatar">
                                <div class="profile-info">
                                    <h5>张雪</h5>
                                    <div class="match-percentage">92% 匹配</div>
                                </div>
                            </div>
                            <div class="d-flex gap-2">
                                <button class="btn btn-primary">
                                    <i class="fas fa-comment me-1"></i> 打招呼
                                </button>
                                <button class="btn btn-outline-primary">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="btn btn-outline-primary">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                        
                        <div class="profile-stats">
                            <div class="stat-item">
                                <i class="fas fa-birthday-cake"></i>
                                <span>25岁</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>8.3公里</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>3小时前</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-user-graduate"></i>
                                <span>流行音乐专业</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-briefcase"></i>
                                <span>独立音乐人</span>
                            </div>
                        </div>
                        
                        <p class="card-text">独立音乐人，喜欢创作和分享原创歌曲，寻找音乐伙伴和听众。擅长吉他和作曲，风格偏向民谣和流行，经常在livehouse演出。</p>
                        
                        <div class="interest-tags">
                            <span class="interest-tag">音乐</span>
                            <span class="interest-tag">创作</span>
                            <span class="interest-tag">表演</span>
                            <span class="interest-tag">吉他</span>
                            <span class="interest-tag">现场音乐</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 分页 -->
        <nav class="mt-5">
            <ul class="pagination justify-content-center">
                <li class="page-item disabled">
                    <a class="page-link" href="#" tabindex="-1">上一页</a>
                </li>
                <li class="page-item active"><a class="page-link" href="#">1</a></li>
                <li class="page-item"><a class="page-link" href="#">2</a></li>
                <li class="page-item"><a class="page-link" href="#">3</a></li>
                <li class="page-item">
                    <a class="page-link" href="#">下一页</a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 折叠面板功能
        document.querySelectorAll('.collapse-header').forEach(header => {
            header.addEventListener('click', function() {
                const targetId = this.getAttribute('data-target');
                const targetContent = document.getElementById(targetId);
                const icon = this.querySelector('i.fas.fa-chevron-down');
                
                targetContent.classList.toggle('show');
                icon.classList.toggle('rotate');
            });
        });
        
        // 筛选芯片选择功能
        document.querySelectorAll('.filter-chip').forEach(chip => {
            chip.addEventListener('click', function() {
                const filterType = this.getAttribute('data-filter');
                
                // 如果是单选筛选（如匹配度），先移除同类型的其他选中状态
                if (filterType === 'match' || filterType === 'occupation') {
                    document.querySelectorAll(`.filter-chip[data-filter="${filterType}"]`).forEach(c => {
                        c.classList.remove('active');
                    });
                }
                
                // 切换当前芯片的选中状态
                this.classList.toggle('active');
                
                // 更新筛选结果计数（实际应用中应根据筛选条件计算）
                updateFilterResults();
            });
        });
        
        // 年龄滑块功能
        const ageSlider = document.getElementById('age-max');
        const ageValue = document.getElementById('age-value');
        
        ageSlider.addEventListener('input', function() {
            ageValue.textContent = this.value;
            updateFilterResults();
        });
        
        // 距离滑块功能
        const distanceSlider = document.getElementById('distance-range');
        const distanceValue = document.getElementById('distance-value');
        
        distanceSlider.addEventListener('input', function() {
            distanceValue.textContent = this.value;
            updateFilterResults();
        });
        
        // 复选框和单选框变化时更新结果
        document.querySelectorAll('input[type="checkbox"], input[type="radio"]').forEach(input => {
            input.addEventListener('change', updateFilterResults);
        });
        
        // 移除已选筛选条件
        document.querySelectorAll('.remove-filter').forEach(btn => {
            btn.addEventListener('click', function() {
                const filterType = this.getAttribute('data-filter');
                const filterItem = this.parentElement;
                
                // 移除UI中的筛选项
                filterItem.remove();
                
                // 重置对应筛选条件
                if (filterType === 'match') {
                    document.querySelectorAll('.filter-chip[data-filter="match"]').forEach(chip => {
                        chip.classList.remove('active');
                    });
                    document.querySelector('.filter-chip[data-filter="match"][data-value="all"]').classList.add('active');
                } else if (filterType === 'age') {
                    ageSlider.value = 35;
                    ageValue.textContent = 35;
                } else if (filterType === 'interest') {
                    document.querySelectorAll('.filter-chip[data-filter="interest"]').forEach(chip => {
                        chip.classList.remove('active');
                    });
                }
                
                // 更新结果计数
                updateFilterResults();
                
                // 如果没有筛选条件了，隐藏整个容器
                if (document.querySelectorAll('.selected-filter-item').length === 0) {
                    document.querySelector('.selected-filters').style.display = 'none';
                }
            });
        });
        
        // 清除全部筛选条件
        document.querySelector('.clear-all').addEventListener('click', function() {
            // 清空已选筛选项
            document.querySelectorAll('.selected-filter-item').forEach(item => {
                item.remove();
            });
            
            // 隐藏筛选容器
            document.querySelector('.selected-filters').style.display = 'none';
            
            // 重置所有筛选条件
            resetAllFilters();
            
            // 更新结果计数
            updateFilterResults();
        });
        
        // 重置筛选按钮
        document.getElementById('reset-filters').addEventListener('click', function() {
            // 清空已选筛选项
            document.querySelectorAll('.selected-filter-item').forEach(item => {
                item.remove();
            });
            
            // 隐藏筛选容器
            document.querySelector('.selected-filters').style.display = 'none';
            
            // 重置所有筛选条件
            resetAllFilters();
            
            // 更新结果计数
            updateFilterResults();
        });
        
        // 应用筛选按钮
        document.getElementById('apply-filters').addEventListener('click', function() {
            // 收集所有筛选条件并更新已选筛选区域
            collectAndShowSelectedFilters();
            
            // 显示已选筛选容器（如果有筛选条件）
            if (document.querySelectorAll('.selected-filter-item').length > 0) {
                document.querySelector('.selected-filters').style.display = 'flex';
            }
            
            // 这里可以添加筛选结果加载动画
            applyFiltersWithAnimation();
        });
        
        // 视图切换功能
        const gridViewBtn = document.getElementById('grid-view');
        const listViewBtn = document.getElementById('list-view');
        const gridResults = document.getElementById('grid-results');
        const listResults = document.getElementById('list-results');
        
        gridViewBtn.addEventListener('click', function() {
            gridViewBtn.classList.add('active');
            listViewBtn.classList.remove('active');
            gridResults.style.display = 'flex';
            gridResults.style.flexWrap = 'wrap';
            listResults.style.display = 'none';
        });
        
        listViewBtn.addEventListener('click', function() {
            listViewBtn.classList.add('active');
            gridViewBtn.classList.remove('active');
            listResults.style.display = 'block';
            gridResults.style.display = 'none';
        });
        
        // 点赞功能
        document.querySelectorAll('.btn-outline-primary').forEach(btn => {
            if (btn.querySelector('.fa-heart')) {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('text-danger');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('text-danger');
                    }
                });
            }
            
            // 收藏功能
            if (btn.querySelector('.fa-bookmark')) {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('text-primary');
                    } else {
                        // 取消收藏
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('text-primary');
                    }
                });
            }
        });
        
        // 辅助函数：更新筛选结果计数
        function updateFilterResults() {
            // 实际应用中应根据筛选条件计算结果数量
            const minResults = 5;
            const maxResults = 128;
            const randomResults = Math.floor(Math.random() * (maxResults - minResults + 1)) + minResults;
            
            document.querySelector('.filter-results strong').textContent = randomResults;
            document.querySelector('.results-count strong').textContent = randomResults;
        }
        
        // 辅助函数：重置所有筛选条件
        function resetAllFilters() {
            // 重置匹配度筛选
            document.querySelectorAll('.filter-chip[data-filter="match"]').forEach(chip => {
                chip.classList.remove('active');
            });
            document.querySelector('.filter-chip[data-filter="match"][data-value="all"]').classList.add('active');
            
            // 重置兴趣筛选
            document.querySelectorAll('.filter-chip[data-filter="interest"]').forEach(chip => {
                chip.classList.remove('active');
            });
            
            // 重置职业筛选
            document.querySelectorAll('.filter-chip[data-filter="occupation"]').forEach(chip => {
                chip.classList.remove('active');
            });
            
            // 重置单选按钮
            document.querySelectorAll('input[type="radio"]').forEach(radio => {
                if (radio.id.includes('all')) {
                    radio.checked = true;
                } else {
                    radio.checked = false;
                }
            });
            
            // 重置复选框
            document.querySelectorAll('input[type="checkbox"]').forEach(checkbox => {
                checkbox.checked = false;
            });
            // 保持"正在线上"默认选中
            document.getElementById('online-now').checked = true;
            
            // 重置滑块
            ageSlider.value = 35;
            ageValue.textContent = 35;
            distanceSlider.value = 50;
            distanceValue.textContent = 50;
        }
        
        // 辅助函数：收集并显示已选筛选条件
        function collectAndShowSelectedFilters() {
            // 清空现有筛选项
            document.querySelectorAll('.selected-filter-item').forEach(item => {
                item.remove();
            });
            
            // 收集匹配度筛选
            const activeMatchChip = document.querySelector('.filter-chip[data-filter="match"].active');
            if (activeMatchChip && activeMatchChip.getAttribute('data-value') !== 'all') {
                addSelectedFilter('match', `匹配度: ${activeMatchChip.textContent.trim()}`);
            }
            
            // 收集年龄筛选
            const ageVal = ageSlider.value;
            if (ageVal !== '35') { // 默认值
                addSelectedFilter('age', `年龄: 25-${ageVal}岁`);
            }
            
            // 收集兴趣筛选
            document.querySelectorAll('.filter-chip[data-filter="interest"].active').forEach(chip => {
                addSelectedFilter('interest', `兴趣: ${chip.textContent.trim()}`);
            });
            
            // 收集距离筛选
            const distanceVal = distanceSlider.value;
            if (distanceVal !== '50') { // 默认值
                addSelectedFilter('distance', `距离: 0-${distanceVal}公里`);
            }
        }
        
        // 辅助函数：添加已选筛选项
        function addSelectedFilter(filterType, text) {
            const selectedFilters = document.querySelector('.selected-filters');
            const filterItem = document.createElement('div');
            filterItem.className = 'selected-filter-item';
            filterItem.innerHTML = `
                ${text}
                <span class="remove-filter" data-filter="${filterType}"><i class="fas fa-times"></i></span>
            `;
            
            // 添加删除事件
            filterItem.querySelector('.remove-filter').addEventListener('click', function() {
                filterItem.remove();
                resetFilterByType(filterType);
                updateFilterResults();
                
                if (document.querySelectorAll('.selected-filter-item').length === 0) {
                    selectedFilters.style.display = 'none';
                }
            });
            
            // 插入到清除按钮之前
            selectedFilters.insertBefore(filterItem, document.querySelector('.clear-all'));
        }
        
        // 辅助函数：按类型重置筛选条件
        function resetFilterByType(filterType) {
            if (filterType === 'match') {
                document.querySelectorAll('.filter-chip[data-filter="match"]').forEach(chip => {
                    chip.classList.remove('active');
                });
                document.querySelector('.filter-chip[data-filter="match"][data-value="all"]').classList.add('active');
            } else if (filterType === 'age') {
                ageSlider.value = 35;
                ageValue.textContent = 35;
            } else if (filterType === 'interest') {
                document.querySelectorAll(`.filter-chip[data-filter="${filterType}"].active`).forEach(chip => {
                    chip.classList.remove('active');
                });
            } else if (filterType === 'distance') {
                distanceSlider.value = 50;
                distanceValue.textContent = 50;
            }
        }
        
        // 辅助函数：应用筛选时的动画效果
        function applyFiltersWithAnimation() {
            const resultsContainer = gridViewBtn.classList.contains('active') ? gridResults : listResults;
            
            // 添加加载动画类
            resultsContainer.classList.add('opacity-50');
            
            // 模拟加载延迟
            setTimeout(() => {
                // 移除加载动画类
                resultsContainer.classList.remove('opacity-50');
            }, 500);
        }
        
        // 页面加载时初始化
        window.addEventListener('load', function() {
            // 显示已选筛选容器
            if (document.querySelectorAll('.selected-filter-item').length > 0) {
                document.querySelector('.selected-filters').style.display = 'flex';
            }
        });
    </script>
</body>
</html>
    
